//
//  ChildViewCell02.m
//  PosApp
//
//  Created by 刘萍 on 2018/9/13.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "ChildViewCell02.h"

@implementation ChildViewCell02

- (void)setModel:(ChildModel02 *)model {
    
    [self.PosImage sd_setImageWithURL:[NSURL URLWithString:model.pos_pic] placeholderImage:[UIImage imageNamed:@"MainZWImage"]];
    self.CellClassLabel.text = [NSString stringWithFormat:@"%@",model.pos_name];
    self.PosName.text = [NSString stringWithFormat:@"%@",model.pos_name];
    self.PosCode.text = [NSString stringWithFormat:@"%@",model.pos_merch];
    self.PosSN.text = [NSString stringWithFormat:@"%@",model.pos_sn];
    self.PosChange.text = [NSString stringWithFormat:@"%@",model.change_desc];
    self.PosTime.text = [NSString stringWithFormat:@"%@",model.change_time];
    
    if ([model.pos_active isEqual:@"1"]) {
        self.TypeLabel.text = [NSString stringWithFormat:@"已激活"];
        self.TypeLabel.textColor = KRGBColor(251, 40, 68);
        
    }else{
        self.TypeLabel.text = [NSString stringWithFormat:@"未激活"];
        self.TypeLabel.textColor = KRGBColor(48, 48, 48);
        
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
